<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
 		<base href="<%=basePath%>">
		<meta http-equiv="X-UA-Compatible" content="IE=8" />
		<title>Default Examples</title>
		<style>
			form {
				margin: 0;
			}textarea {
				display: block;
			}
		</style>
		<script charset="utf-8" src="kindeditor-min.js"></script>
		<script charset="utf-8" src="zh_CN.js"></script>
		<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
				K('input[name=clear]').click(function(e) {
					editor.html('');
				});
			});
		</script>
	</head>
	<body>
	<center>
		<div class="location clearfix">
			<div class="text">
				<b>发帖</b>
			</div>
		</div>
		</center>
	
	<div id="BBS_BLOCK" align="center">
		<form action="<%=basePath%>postAction" method="post">
			<table class="fatieArea">
				<colgroup>
					<col class="titleItem">
					<col class="item">
				</colgroup>
				<tbody>
					<tr>
					<input type="hidden" name="userId" value=${UserName.userId}>
						<td align="left" width="40%">标题：<input name="title"><p>     </p>
						<input type="hidden" name="userName" value=${UserName.userName}>
						选择分类：
						<select name="item">
								<s:iterator value="#session.PostList" id="postList" status="st">
										<option><s:property value="#postList"/></option>
								</s:iterator>
						</select>
						</td>
					</tr>
					<tr>
						<td valign="top">
							<textarea name="content" style="width:800px;height:400px;visibility:hidden;">想说点什么呢？</textarea>
							<input type="button" name="clear" value="清空内容" />
							<input type="submit" value="提交">
						</td>
					</tr>
					<tr>
						<td></td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
  </body>

</html>
